package com.github.edu.repair.manager.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-20
 */
@Entity
@Table(name = "t_bx_fwdl")
public class TBxFwdl implements Serializable {
    private Integer id;
    private String fwdl;
    private String fwsm;
    private Integer sfqy;

    @Id
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "fwdl")
    public String getFwdl() {
        return fwdl;
    }

    public void setFwdl(String fwdl) {
        this.fwdl = fwdl;
    }

    @Basic
    @Column(name = "fwsm")
    public String getFwsm() {
        return fwsm;
    }

    public void setFwsm(String fwsm) {
        this.fwsm = fwsm;
    }

    @Basic
    @Column(name = "sfqy")
    public Integer getSfqy() {
        return sfqy;
    }

    public void setSfqy(Integer sfqy) {
        this.sfqy = sfqy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TBxFwdl tBxFwdl = (TBxFwdl) o;
        return Objects.equals(id, tBxFwdl.id) &&
                Objects.equals(fwdl, tBxFwdl.fwdl) &&
                Objects.equals(fwsm, tBxFwdl.fwsm) &&
                Objects.equals(sfqy, tBxFwdl.sfqy);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, fwdl, fwsm, sfqy);
    }
}
